				var number=document.getElementsByClassName('number')[0];
				var blockExp=document.getElementsByClassName('block-exp')[0];
				var user=document.getElementsByClassName('user')[0];
				var password=document.getElementsByClassName('password')[0];
				var state=document.getElementsByClassName('state')[0];
				var next01=document.getElementsByClassName('next')[0];
				var verify=document.getElementsByClassName('verify')[0];
				var blockob=document.getElementsByClassName('block')[0];
				var text=document.getElementsByClassName('text')[0];
				var text2=document.getElementsByClassName('text2')[0];

				var time2;

				blockob.onmousemove	=function(e){

					if(e.screenX>530&&e.screenX<786){	
						blockob.style.marginLeft=e.screenX-530+"px";
						if(blockob.offsetLeft==241){

							var exp=/\d{11}/g;
							if(exp.test(number.value)&&number.value.length<=11){
								if(number.value.length!=0&&user.value.length!=0&&password.value.length!=0){

									//time2=setTimeout(function(){
									blockob.style.display='none';
									text.style.display='none';
									blockExp.style.display='none';
									text2.style.display='block';
									text2.style.marginTop='-30px';
									text2.style.marginLeft='135px';
									verify.style.backgroundColor='cyan';
									blockob.onmousemove=null;
									//},5000);

								}else{
									alert('请完成信息填写');
									blockob.style.marginLeft='0px';
								}
							}else{
								alert('手机号格式错误');
								number.value='';
								blockob.style.marginLeft='0px';
							}
						}
					}
				};

				blockob.onmouseout=function(){
					//if(blockob.offsetLeft<242||blockob.offsetLeft>245){
						blockob.style.marginLeft='0px';
						//clearTimeout(time2);
					//}
				}

				next01.onclick=function(){

					if(blockob.style.display=='none'){
						alert('注册成功');
					}else{
						alert("请填写信息");
					}
				}

				


